<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>登录超时</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
			<link rel="stylesheet" type="text/css" href="styles.css">
		-->
		<script type="text/javascript" src="<%=basePath %>scripts/jquery-1.9.1.js"></script> 
		<script type="text/javascript">
			var time=5;
			$(function(){
				$("#timeSpan").text(time);
				
				setInterval(timeSpan, 1000);
				
			});
			function timeSpan(){
				if(time==0){
					window.location.href="<%=basePath%>";
				}else{
					time = time-1;
					console.log(time);
					$("#timeSpan").text(time);
				}
			}
		</script>
	</head>
	<body>
		<h5>登录超时,<label id="timeSpan"></label>秒返回登录页面</h5>
	</body>
</html>